import json

# #complexMissionJson
# {"missionsList":[{"missionsType":"MissionsTakeoff","datasets":{"takeoff_relative_altitude":3.0,"yaw":1.57}},
#                                             # {"missionsType":"MissionsWaypoint","datasets":{"Longitude":8.5461,"Latitude":47.3978}},    
#                                             {"missionsType":"MissionsLand","datasets":{"landing_detection_time":1,"yaw":None}}],
#                                         "serviceMissions":{},
#                                         "missionsPriority":0}

# #

# #MissionJson
# '{"missionsType":"MissionsTakeoff","datasets":{"takeoff_relative_altitude":3.0,"yaw":1.57}}'
# '{"missionsType":"MissionsLand","datasets":{"landing_detection_time":1,"yaw":None}}'

# #MissionsJson

# '{ {"missionsType":"MissionsTakeoff","datasets":{"takeoff_relative_altitude":3.0,"yaw":1.57}}, {"missionsType":"MissionsLand","datasets":{"landing_detection_time":1,"yaw":None}}'


# #MissionsFactoryJson
# '{"method":"create_missions","input":"{"missionsType":"MissionsLand","datasets":{"landing_detection_time":1,"yaw":None}}"}'


#MissionsSchedule
##topic
'/command/idStr/MS'
##MissionsScheduleJson
{
  "method": "append",
  "missions": [
    {
      "missionsType": "MissionsTakeoff",
      "datasets": {
        "takeoff_relative_altitude": 3,
        "yaw": 1.57
      }
    },
    {
      "missionsType": "MissionsLand",
      "datasets": {
        "landing_detection_time": 1,
        "yaw": null
      }
    }
  ]
}

{
    "method":"start"
}

{
    "method":"stop"
}
                             
#PublicResourceJson
'/status/fly1/PR'
{
  "takeoff_altitude":{
    "NED":None,
    "msl":None,
    "ell":None,
    "laser":None
  },
  "takeoff_position":{
    "N":None,
    "E":None,
    "D":None
  },
  "takeoff_timestamp":None,

  
  "timestamp":None,
  "idStr":"fly1",

  "flying_status":False,
  "arming_status":False,

  "relative_altitude":{
    "NED":None,
    "msl":None,
    "ell":None,
    "laser":None
  },
  "GNSS_position":{
    "latitude":None,
    "longitude":None
  },
  "NED_position":{
    "N":None,
    "E":None,
    "D":None,
  },
  "NED_velocity":{
    "N":None,
    "E":None,
    "D":None,
  },
  "vehicle_yaw":None,

  "q_FRD_REFTO_NED": list,
 }